/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package apteka;

import java.util.Map;
import org.springframework.security.access.annotation.Secured;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 *
 * @author Marek
 */

@Controller
@RequestMapping("/index.htm")
public class IndexController {

     @RequestMapping(method = RequestMethod.GET)
     @Secured("ROLE_USER")
     public String showPage(Map model) {
        return "index";
     }

}
